package me.mayt.wxfl.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class JdProperty {

	private static final String SERVER_URL = "SERVER_URL";
	private static final String APP_KEY = "APP_KEY";
	private static final String APP_SECRET = "APP_SECRET";
	private static Properties p = new Properties();

	static void read() throws IOException {
		InputStream in = JdProperty.class.getClassLoader().getResourceAsStream("jd.properties");
		p.load(in);
	}

	private JdProperty() {
	}

	public static String getServerUrl() {
		return p.getProperty(SERVER_URL);
	}

	public static String getAppKey() {
		return p.getProperty(APP_KEY);
	}

	public static String getAppSecret() {
		return p.getProperty(APP_SECRET);
		}

}
